/*
 * comlan
 */

package com.promfy.bughunter.domain;

import com.promfy.bughunter.R;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;

public class KindPiaoChong extends CommonBug {
	protected static Bitmap[] icons = new Bitmap[WHOLE_MOVEMENT_ICON_NUMBER];
	protected static Bitmap[] iconKill = new Bitmap[WHOLE_KILL_ICON_NUMBER];
	public KindPiaoChong(Context context, Canvas canvas, int screenW, int screenH) {
		super(context, canvas, screenW, screenH);
		// TODO Auto-generated constructor stub
		//parse icons
		if(icons[0]==null)
		icons[0] = BitmapFactory.decodeResource(context.getResources(), R.drawable.bug_piaochong_1);
		if(icons[1]==null)
		icons[1] = BitmapFactory.decodeResource(context.getResources(), R.drawable.bug_piaochong_2);
		if(icons[2]==null)
		icons[2] = BitmapFactory.decodeResource(context.getResources(), R.drawable.bug_piaochong_1);
		if(icons[3]==null)
		icons[3] = BitmapFactory.decodeResource(context.getResources(), R.drawable.bug_piaochong_2);
//		if(icons[4]==null)
//		icons[4] = BitmapFactory.decodeResource(context.getResources(), R.drawable.bug_piaochong_1);
		if(iconKill[0]==null)
			iconKill[0] = BitmapFactory.decodeResource(context.getResources(), R.drawable.bug_piaochong_killed_1);
		if(iconKill[1]==null)
			iconKill[1] = BitmapFactory.decodeResource(context.getResources(), R.drawable.bug_piaochong_killed_1);
	}

}
